package com.gnerv.battle.boot.project.guard.model.dto;

import com.gnerv.battle.boot.common.base.model.BaseDTO;
import com.gnerv.battle.boot.project.guard.model.bo.MonitorHostBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class MonitorHostCreateDTO {

    private String name;
    private String host;
    private Integer port;
    private String username;
    private String password;
    private String status;
    private Integer sort;

    public MonitorHostBO toMonitorHostBO(){
        MonitorHostBO monitorHostBO = new MonitorHostBO();
        BeanUtils.copyProperties(this, monitorHostBO);
        return monitorHostBO;
    }

}

